﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000371 RID: 881
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DailyActivityInfo : IMessage<DailyActivityInfo>, IMessage, IEquatable<DailyActivityInfo>, IDeepCloneable<DailyActivityInfo>, IBufferMessage
	{
		// Token: 0x17000B65 RID: 2917
		// (get) Token: 0x06002788 RID: 10120 RVA: 0x0006E93D File Offset: 0x0006CB3D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DailyActivityInfo> Parser
		{
			get
			{
				return DailyActivityInfo._parser;
			}
		}

		// Token: 0x17000B66 RID: 2918
		// (get) Token: 0x06002789 RID: 10121 RVA: 0x0006E944 File Offset: 0x0006CB44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DailyActivityInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000B67 RID: 2919
		// (get) Token: 0x0600278A RID: 10122 RVA: 0x0006E956 File Offset: 0x0006CB56
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DailyActivityInfo.Descriptor;
			}
		}

		// Token: 0x0600278B RID: 10123 RVA: 0x0006E95D File Offset: 0x0006CB5D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DailyActivityInfo()
		{
		}

		// Token: 0x0600278C RID: 10124 RVA: 0x0006E968 File Offset: 0x0006CB68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DailyActivityInfo(DailyActivityInfo other) : this()
		{
			this.isHasTaken_ = other.isHasTaken_;
			this.worldLevel_ = other.worldLevel_;
			this.level_ = other.level_;
			this.dailyActivePoint_ = other.dailyActivePoint_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600278D RID: 10125 RVA: 0x0006E9BC File Offset: 0x0006CBBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DailyActivityInfo Clone()
		{
			return new DailyActivityInfo(this);
		}

		// Token: 0x17000B68 RID: 2920
		// (get) Token: 0x0600278E RID: 10126 RVA: 0x0006E9C4 File Offset: 0x0006CBC4
		// (set) Token: 0x0600278F RID: 10127 RVA: 0x0006E9CC File Offset: 0x0006CBCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsHasTaken
		{
			get
			{
				return this.isHasTaken_;
			}
			set
			{
				this.isHasTaken_ = value;
			}
		}

		// Token: 0x17000B69 RID: 2921
		// (get) Token: 0x06002790 RID: 10128 RVA: 0x0006E9D5 File Offset: 0x0006CBD5
		// (set) Token: 0x06002791 RID: 10129 RVA: 0x0006E9DD File Offset: 0x0006CBDD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint WorldLevel
		{
			get
			{
				return this.worldLevel_;
			}
			set
			{
				this.worldLevel_ = value;
			}
		}

		// Token: 0x17000B6A RID: 2922
		// (get) Token: 0x06002792 RID: 10130 RVA: 0x0006E9E6 File Offset: 0x0006CBE6
		// (set) Token: 0x06002793 RID: 10131 RVA: 0x0006E9EE File Offset: 0x0006CBEE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x17000B6B RID: 2923
		// (get) Token: 0x06002794 RID: 10132 RVA: 0x0006E9F7 File Offset: 0x0006CBF7
		// (set) Token: 0x06002795 RID: 10133 RVA: 0x0006E9FF File Offset: 0x0006CBFF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DailyActivePoint
		{
			get
			{
				return this.dailyActivePoint_;
			}
			set
			{
				this.dailyActivePoint_ = value;
			}
		}

		// Token: 0x06002796 RID: 10134 RVA: 0x0006EA08 File Offset: 0x0006CC08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DailyActivityInfo);
		}

		// Token: 0x06002797 RID: 10135 RVA: 0x0006EA18 File Offset: 0x0006CC18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DailyActivityInfo other)
		{
			return other != null && (other == this || (this.IsHasTaken == other.IsHasTaken && this.WorldLevel == other.WorldLevel && this.Level == other.Level && this.DailyActivePoint == other.DailyActivePoint && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002798 RID: 10136 RVA: 0x0006EA84 File Offset: 0x0006CC84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IsHasTaken)
			{
				num ^= this.IsHasTaken.GetHashCode();
			}
			if (this.WorldLevel != 0U)
			{
				num ^= this.WorldLevel.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.DailyActivePoint != 0U)
			{
				num ^= this.DailyActivePoint.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002799 RID: 10137 RVA: 0x0006EB0E File Offset: 0x0006CD0E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600279A RID: 10138 RVA: 0x0006EB16 File Offset: 0x0006CD16
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600279B RID: 10139 RVA: 0x0006EB20 File Offset: 0x0006CD20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IsHasTaken)
			{
				output.WriteRawTag(32);
				output.WriteBool(this.IsHasTaken);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Level);
			}
			if (this.WorldLevel != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.WorldLevel);
			}
			if (this.DailyActivePoint != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.DailyActivePoint);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600279C RID: 10140 RVA: 0x0006EBB4 File Offset: 0x0006CDB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IsHasTaken)
			{
				num += 2;
			}
			if (this.WorldLevel != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.WorldLevel);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.DailyActivePoint != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DailyActivePoint);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600279D RID: 10141 RVA: 0x0006EC30 File Offset: 0x0006CE30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DailyActivityInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IsHasTaken)
			{
				this.IsHasTaken = other.IsHasTaken;
			}
			if (other.WorldLevel != 0U)
			{
				this.WorldLevel = other.WorldLevel;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.DailyActivePoint != 0U)
			{
				this.DailyActivePoint = other.DailyActivePoint;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600279E RID: 10142 RVA: 0x0006ECA8 File Offset: 0x0006CEA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600279F RID: 10143 RVA: 0x0006ECB4 File Offset: 0x0006CEB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num == 32U)
					{
						this.IsHasTaken = input.ReadBool();
						continue;
					}
					if (num == 48U)
					{
						this.Level = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 96U)
					{
						this.WorldLevel = input.ReadUInt32();
						continue;
					}
					if (num == 112U)
					{
						this.DailyActivePoint = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000FD1 RID: 4049
		private static readonly MessageParser<DailyActivityInfo> _parser = new MessageParser<DailyActivityInfo>(() => new DailyActivityInfo());

		// Token: 0x04000FD2 RID: 4050
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000FD3 RID: 4051
		public const int IsHasTakenFieldNumber = 4;

		// Token: 0x04000FD4 RID: 4052
		private bool isHasTaken_;

		// Token: 0x04000FD5 RID: 4053
		public const int WorldLevelFieldNumber = 12;

		// Token: 0x04000FD6 RID: 4054
		private uint worldLevel_;

		// Token: 0x04000FD7 RID: 4055
		public const int LevelFieldNumber = 6;

		// Token: 0x04000FD8 RID: 4056
		private uint level_;

		// Token: 0x04000FD9 RID: 4057
		public const int DailyActivePointFieldNumber = 14;

		// Token: 0x04000FDA RID: 4058
		private uint dailyActivePoint_;
	}
}
